package com.hnichr.ump.common.talent.library.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_talent_work_info",indexes = {@Index(columnList = "USER_ID_")})
@Schema(description = "人才库-工作(实习)经历")
public class WorkInfo extends Talent {
    /**
     *  单位类型
     */
    @Column(name = "COMPANY_TYPE_")
    @Schema(description = "单位类型")
    private String companyType;
    /**
     * 所属部门
     */
    @Column(name = "DEPART_")
    @Schema(description = "所属部门")
    private String depart;

    /**
     * 单位规模
     */
    @Column(name = "COMPANY_SCALE_")
    @Schema(description = "单位规模")
    private String companyScale;

    /**
     * 上级职位
     */
    @Column(name = "SUPERIOR_")
    @Schema(description = "上级职位")
    private String superior;
    /**
     * 下属人数
     */
    @Column(name = "SUBORDINATES_")
    @Schema(description = "下属人数")
    private String subordinates;

    /**
     * 离职原因
     */
    @Column(name = "LEAVING_REASON_")
    @Schema(description = "离职原因")
    private String leavingReason;
    /**
     * 公司名称
     */
    @Column(name = "COMPANY_NAME_")
    @Schema(description = "公司名称")
    private String companyName;

    /**
     * 职位名称
     */
    @Column(name = "POSITION_NAME_")
    @Schema(description = "职位名称")
    private String positionName;

    /**
     * 职位名称
     */
    @Column(name = "POSITION_TYPE_")
    @Schema(description = "职位类别")
    private String positionType;
    /**
     * 开始时间
     */
    @Column(name = "START_TIME_")
    @Schema(description = "开始时间")
    private Date startTime;

    /**
     * 开始时间
     */
    @Column(name = "END_TIME_")
    @Schema(description = "结束时间")
    private Date endTime;

    /**
     * 税前薪水
     */
    @Column(name = "SALARY_")
    @Schema(description = "税前薪水")
    private Integer salary;

    /**
     * 工作描述
     */
    @Column(name = "WORK_DESCRIBE_",columnDefinition="text")
    @Schema(description = "工作描述")
    private String workDescribe;

    /**
     * 业绩
     */
    @Column(name = "WORK_ACHIEVEMENT_",columnDefinition="text")
    @Schema(description = "业绩")
    private String workAchievement;

    /**
     * 工作内容
     */
    @Column(name = "WORK_CONTENT_",columnDefinition="text")
    @Schema(description = "工作内容")
    private String workContent;

    /**
     * 简历id
     */
    @Column(name = "RESUME_ID_")
    @Schema(description = "简历id")
    private String resumeId;
}
